<template >
	<view style="height: {{height+'px'}}">
		<button style="height: {{height+'px'}}" >点击{{height}}</button>
	</view>
</template>

<script >
	import { onMounted, ref } from "vue";
	import systemInfo from '/common/systemInfo.js'
	export default{
		name:"navBar",
		data(){
			height:0
		},
		props:{
			title:{
				type:String,
				default:'center'
			}
		},
		created(){
			const system=systemInfo().statusHeight
			this.height=system
			console.log(this.height)
		}
			
	}

</script>

<style>

</style>